<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>childrn</title>
		<script src="//www.w3cschool.cn/statics/assets/react/react.min.js"></script>
		<script src="//www.w3cschool.cn/statics/assets/react/react-dom.min.js"></script>
		<script src="//www.w3cschool.cn/statics/assets/react/babel.min.js"></script>
	</head>
	<body>
		<div id="hello-example"></div>
		<script type="text/babel">
		var ShowTitle=React.createClass({
			render:function(){
				return(
				<ul>
				{
					React.Children.map(this.props.children,function(child){
						return <li>{child}</li>
					})
				}
				</ul>
				)
			}
		});
		
		ReactDOM.render(
			<ShowTitle>
				<h1>嘿嘿嘿</h1>
				<a href="https://baidu.com">https://baidu.com</a>
			</ShowTitle>,
			document.getElementById('hello-example')
		)	
		</script>
	</body>
</html>
